FROM java:8

# 设置工作目录为/bale
#WORKDIR /bale

#VOLUME /bale/tmp

#COPY bale.jar bale.jar

#ADD bale.jar bale.jar

ARG JAR_FILE

ADD ${JAR_FILE} bale.jar

RUN bash -c 'touch /bale.jar'

#ENTRYPOINT sleep 60 && ["java","-jar","bale.jar","--spring.profiles.active=prod","-c"]
ENTRYPOINT sleep 60 && java -jar /bale.jar --spring.profiles.active=prod -c